//
//  YTServiceAreaViewController.m
//  YiTuDriverClient
//
//  Created by 石少庸 on 2017/5/4.
//  Copyright © 2017年 Yitu. All rights reserved.
//

#import "YTServiceAreaViewController.h"
#import "YTRegisterViewController.h"

@interface YTServiceAreaViewController ()
@property (weak, nonatomic) IBOutlet UIButton *china;
@property (weak, nonatomic) IBOutlet UIButton *other;
@property (copy, nonatomic) NSString *area;
@end

@implementation YTServiceAreaViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    _china.layer.borderColor = kMainBlueColor.CGColor;
    _china.layer.borderWidth = 2;
    @weakify(self);
    [[self rac_signalForSelector:@selector(viewWillAppear:)] subscribeNext:^(id x) {
        @strongify(self);
        [self.navigationController setNavigationBarHidden:YES animated:x];
    }];
}

- (IBAction)backAction:(UIButton *)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    YTRegisterViewController *registerVC = segue.destinationViewController;
    if ([segue.identifier isEqualToString:@"RegisterAreaChina"]) {
        registerVC.isChina = @"1";
    } else {
        registerVC.isChina = @"2";
    }
}

@end
